package app.vendorportal.api.marketplace;

import app.vendorportal.api.marketplace.data.request.QueryProductPriceBySkuRequest;
import app.vendorportal.api.marketplace.data.request.QueryProductPriceRequest;
import app.vendorportal.api.marketplace.data.response.QueryProductPriceBySkuResponse;
import app.vendorportal.api.marketplace.data.response.QueryProductPriceResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author vince
 */
public interface ProductPriceQueryAPIService {

    @RequestMapping(value = "/market/product/price/query", method = RequestMethod.POST)
    @ResponseBody
    QueryProductPriceResponse queryProductPrice(QueryProductPriceRequest request);

    @RequestMapping(value = "/market/product/price/query-by-sku", method = RequestMethod.POST)
    @ResponseBody
    QueryProductPriceBySkuResponse queryProductPriceBySku(QueryProductPriceBySkuRequest request);
}
